package com.yanqu.road.entity.activity.seacraft;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

/**
 * @Description 海上争霸 南海丝路 日志
 * @Author cwq
 * @Data 2022/1/20 16:56
 */
@FieldTypeAnnotation(tableName = "t_c_activity_seacraft_southsea_record")
public class SeacraftSouthSeaCrossRecordData extends DataObject {
    @FieldTypeAnnotation(desc = "活动id", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "联盟id", select = true, update = true)
    private String unionId;
    @FieldTypeAnnotation(desc = "日志类型 （0攻击 1防守）", select = true, update = true)
    private int masterType;
    @FieldTypeAnnotation(desc = "攻击类型 0突袭 1进攻 2 道具进攻 3道具修复 5使用道具加速")
    private int sonType;
    @FieldTypeAnnotation(desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "目标商会id, 当masterType = 0 ，sonType =012 才有")
    private String targetId;
    @FieldTypeAnnotation(desc = "击杀人数")
    private int killNum;
    @FieldTypeAnnotation(desc = "获得积分")
    private int score;
    @FieldTypeAnnotation(desc = "损失耐久")
    private int durable;
    @FieldTypeAnnotation(desc = " 道具使用数目")
    private int goodsUseNum;
    @FieldTypeAnnotation(desc = " 时间 ms")
    private long time;
    @FieldTypeAnnotation(desc = " 道具id (当masterType = 1 ，sonType =5 才有 )")
    private int propId;
    @FieldTypeAnnotation(desc = " 加的航行速度 (当masterType = 1 ，sonType =5 才有 )")
    private int speed;
    @FieldTypeAnnotation(desc = " 持续时间 s    (当masterType = 1 ，sonType =5 才有 )")
    private int continueTime;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        if (unionId == null) {
            return;
        }
        if (this.unionId == null || !this.unionId.equals(unionId)) {
            this.unionId = unionId;
            setOp(DataStatus.Update);
        }
    }

    public int getMasterType() {
        return masterType;
    }

    public void setMasterType(int masterType) {
        if (this.masterType != masterType) {
            this.masterType = masterType;
            setOp(DataStatus.Update);
        }
    }

    public int getSonType() {
        return sonType;
    }

    public void setSonType(int sonType) {
        if (this.sonType != sonType) {
            this.sonType = sonType;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }


    public int getKillNum() {
        return killNum;
    }

    public void setKillNum(int killNum) {
        if (this.killNum != killNum) {
            this.killNum = killNum;
            setOp(DataStatus.Update);
        }
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        if (targetId == null) {
            return;
        }
        if (this.targetId == null || !this.targetId.equals(targetId)) {
            this.targetId = targetId;
            setOp(DataStatus.Update);
        }
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        if (this.score != score) {
            this.score = score;
            setOp(DataStatus.Update);
        }
    }

    public int getDurable() {
        return durable;
    }

    public void setDurable(int durable) {
        if (this.durable != durable) {
            this.durable = durable;
            setOp(DataStatus.Update);
        }
    }

    public int getGoodsUseNum() {
        return goodsUseNum;
    }

    public void setGoodsUseNum(int goodsUseNum) {
        if (this.goodsUseNum != goodsUseNum) {
            this.goodsUseNum = goodsUseNum;
            setOp(DataStatus.Update);
        }
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        if (this.time != time) {
            this.time = time;
            setOp(DataStatus.Update);
        }
    }

    public int getPropId() {
        return propId;
    }

    public void setPropId(int propId) {
        if (this.propId != propId) {
            this.propId = propId;
            setOp(DataStatus.Update);
        }
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        if (this.speed != speed) {
            this.speed = speed;
            setOp(DataStatus.Update);
        }
    }

    public int getContinueTime() {
        return continueTime;
    }

    public void setContinueTime(int continueTime) {
        if (this.continueTime != continueTime) {
            this.continueTime = continueTime;
            setOp(DataStatus.Update);
        }
    }
}
